#include "SMPPSetDpf.hpp"

using namespace smpp::pdu;

SetDpf::SetDpf(const quint8 nValue):
TLV(TLVtags::TAG_SET_DPF,1),_Value(nValue){}

SetDpf::SetDpf(const SetDpf &nSetDpf):
TLV(nSetDpf),_Value(nSetDpf.getValue()){}

bool SetDpf::operator ==(const SetDpf &nSetDpf) const{
	return (TLV::operator == (nSetDpf) && 
			_Value == nSetDpf.getValue());
}

bool SetDpf::operator !=(const SetDpf &nSetDpf) const{
	return !this->operator == (nSetDpf);
}

SetDpf &SetDpf::operator = (const SetDpf &nSetDpf){
	if(*this == nSetDpf)
		return *this;
	TLV::operator = (nSetDpf);
	_Value = nSetDpf.getValue();
	return *this;
}

void SetDpf::setValue(const quint8 nValue){
	_Value = nValue;
}

const quint8 SetDpf::getValue() const{
	return _Value;
}
